<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ page isErrorPage="true" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<link rel="stylesheet" type="text/css" media="all" href="css/estilo.css"/>
</head>

<body>
	<%
	String sId=request.getParameter("id");
	int id=(sId!=null ? Integer.parseInt(sId) : 0);
	Exception e=(Exception) com.opensymphony.xwork2.ActionContext.getContext().getValueStack().findValue("exception");

	%>

	<font color='red'>
	There was an error processing the request:<br>
	</font>
	<font color='blue'>
	<%
		if (id==1)
			out.println("User not authorized");
		else if (id==2)
			out.println("Error while sending the email. Please, review your email address and try again");
		else if (e!=null)
			out.println(e.getMessage());
		else
			out.println();
	%>
	</font>
</body>
</html>